	TOOL.Category = 'Render'
	TOOL.Name = '#Paint Remover'
	TOOL.Command = nil
	TOOL.ConfigName = ''

	if ( CLIENT ) then
		language.Add("Tool_paint_remover_name","Paint Remover")
		language.Add("Tool_paint_remover_desc","Removes paint from a prop, or an admin can remove all paint on the server")
		language.Add("Tool_paint_remover_0","Left click on a prop to remove the paint from it (client side) or if you're an admin, right click to remove all paint from the server")
	end
		
	function TOOL:LeftClick( tr )
		if (!tr.Entity:IsValid() ) then return false end 
		if (!tr.Entity) then return false end 
		
		if ( CLIENT ) then return true end
		
		game.ConsoleCommand("cl_removedecals\n")
		
		return true
	end

	
	function TOOL:RightClick()
			for _, pl in pairs(player.GetAll()) do
				pl:ConCommand("r_cleardecals")
			for k, v in pairs(player.GetAll()) do
				v:PrintMessage( HUD_PRINTCENTER, "Admin Has Removed All Paint" )
			end
		end
	end

	local AdminOnlyTools = {"Paint Remover"}

	function AdminOnlyTools(ply, trace, tool)
		for k,v in pairs (AdminOnlyTools) do
			if v == tool and ply:IsAdmin() then return true
			elseif v == tool and !ply:IsAdmin() then NotAllow()
			else return true end
	end

	function NotAllow()
	if ( SERVER ) then	
		if LocalPlayer():IsAdmin() or LocalPlayer():IsSuperAdmin() then end
		else
			function GM:PlayerBindPress( ply, bind, pressed )
				if not pressed then return false end
				if bind == "+attack2" then
				return false end
				msgAll("Only the admin can clear all paint")
				end
			end
		end
	end
	hook.Add("CanTool", "Admin Only Tools", AdminOnlyTools)